﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Company_Default : System.Web.UI.Page
{
    public string CompanyName, UserID, keywords, Phone, Fax, Mobile, Address, ZipCode, WebUrl;
    string sql;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            info();
        }
    }
    private void info()
    {
        if (Request.QueryString["p_UserID"] != "")
        {
            int uid = int.Parse(Request.QueryString["p_UserID"]);
            DataTable dt = Class1.ExecSel("select * from wj_User where wj_ID=" + uid + "");
            CompanyName = Convert.ToString(dt.Rows[0]["wj_CompanyName"].ToString());
            UserID = Convert.ToString(dt.Rows[0]["wj_ID"].ToString());
            keywords = Convert.ToString(dt.Rows[0]["wj_keywords"].ToString());
            Phone = Convert.ToString(dt.Rows[0]["wj_Phone"].ToString());
            Fax = Convert.ToString(dt.Rows[0]["wj_Fax"].ToString());
            Mobile = Convert.ToString(dt.Rows[0]["wj_Mobile"].ToString());
            Address = Convert.ToString(dt.Rows[0]["wj_Address"].ToString());
            ZipCode = Convert.ToString(dt.Rows[0]["wj_ZipCode"].ToString());
            WebUrl = Convert.ToString(dt.Rows[0]["wj_WebUrl"].ToString());
         }
    }
}
